package com.wn.ziroom.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wn.ziroom.entity.Incomeorder;
import com.wn.ziroom.mapper.IncomeorderMapper;
import com.wn.ziroom.service.IncomeorderService;
import com.wn.ziroom.vo.IncomeorderVo;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangzhijia
 * @since 2023-02-23 02:27:54
 */
@Service
public class IncomeorderServiceImpl extends ServiceImpl<IncomeorderMapper, Incomeorder> implements IncomeorderService {

    private IncomeorderMapper incomeorderMapper;

    @Autowired
    public void setIncomeorderMapper(IncomeorderMapper incomeorderMapper) {
        this.incomeorderMapper = incomeorderMapper;
    }
    @Override
    public void add(Incomeorder incomeorder) {
    incomeorderMapper.insert(incomeorder);
    }

    @Override
    public List<IncomeorderVo> selectByID(Integer id) {
         return  incomeorderMapper.selectVo(id);



    }


}
